/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.member;

import com.enation.app.javashop.client.member.MemberNoticeLogClient;
import com.enation.app.javashop.core.client.fallback.member.MemberNoticeLogClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.model.member.dos.MemberNoticeLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author fk
 * @version v2.0
 * @Description: 会员短消息
 * @date 2018/8/14 10:17
 * @since v7.0.0
 */
@FeignClient(name = "member-service", fallbackFactory = MemberNoticeLogClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface MemberNoticeLogClientFeignImpl extends MemberNoticeLogClient {

    /**
     * 添加会员站内消息历史
     *
     * @param content  消息内容
     * @param sendTime 发送时间
     * @param memberId 会员id
     * @param title    标题
     * @return 历史消息
     */
    @Override
    @RequestMapping(value = "/client/member-notice-log", method = RequestMethod.POST)
    MemberNoticeLog add(@RequestParam("content") String content,
                        @RequestParam("send_time") long sendTime,
                        @RequestParam("member_id") Long memberId,
                        @RequestParam("title") String title);


}
